//
//  LZSecutyViewController.m
//  LuDaoJinFu
//
//  Created by dzjf on 2017/2/28.
//  Copyright © 2017年 dzjf. All rights reserved.
//

#import "LZSecutyViewController.h"
#import "LDSecutyCell.h"
@interface LZSecutyViewController ()<UIWebViewDelegate>

@end

@implementation LZSecutyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self leftButton:@""];
    UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [self.view addSubview:web];
    web.delegate = self;
    NSString *string = @"";
    if (_flag == 2) {
        string = @"http://ludaojinfu.com/appstatichtml/about.html";
        [self setupTitleView:@"关于我们"];
    }else if (_flag == 1) {
        string = @"http://ludaojinfu.com/appstatichtml/security.html";
        [self setupTitleView:@"安全保障"];
    }
    [web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:string]]];
    JSVIEWSHOW;
}

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
    JSSHOW(LOAD_FAIL_TIP);
}

- (void)webViewDidFinishLoad:(UIWebView *)webView {
    JSVIEWHIDE;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
